﻿
@{
    ViewBag.Title = "ParList";
}
@using YouWei.Infrastructure.Models;
@using YouWei.Utility;
@model  List<CompanyPageModel>

@if (Model.Count <= 0)
{
    <div class="no-data" id="nodata">
        <div class="img-box"></div>
        <div class="text">暂无数据</div>
    </div>
}
else
{
    <table class="table table-bordered table-hover body-table-head">
        <thead>
            <tr>
                <th>
                    企业ID
                </th>
                <th>
                    企业名称
                </th>
                <th>
                    联系人
                </th>
                <th>
                    省市
                </th>
                <th>
                    详细地址
                </th>

                <th>
                    联系电话
                </th>
                <th>
                    创建人
                </th>
                <th>
                    创建时间
                </th>
                <th class="t_c">
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td class="title">@item.CompanyID</td>
                    <td>@item.CompanyName</td>
                    <td>@item.ContactUser</td>
                    <td>@item.pName @item.cName</td>
                    <td>@item.Address</td>
                    @*<td>@item.Proince @item.City @item.Location</td>*@
                    <td>@item.ContactMobile</td>
                    <td>@item.CreateUserID</td>
                    <td>@item.CreateDate.ToString("yyyy-MM-dd HH:mm")</td>
                    <td>
                        <button type="button" class="btn btn-info btn-xs" onclick="detail('@item.CompanyID')">详情</button>
                    </td>
                </tr>
            }
        </tbody>
    </table>
    <input type="hidden" id="total" value="@ViewBag.Total" />
}





